
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html slick-uniqueid="1" xmlns="http://www.w3.org/1999/xhtml"><head>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="<{$env.app.res_url}>/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="<{$env.app.res_url}>/jquery-ui-1.8.7.min.js"></script>
	<script type="text/javascript" src="<{$env.app.res_url}>/jquery.cookie.js"></script>
	<script type="text/javascript" src="<{$env.app.res_url}>/jquery.timers.js"></script>
	<script type="text/javascript" src="<{$env.app.res_url}>/jquery.utility.js"></script>
	<link rel="stylesheet" type="text/css" href="<{$env.app.res_url}>/bind.css" />
    <link rel="stylesheet" type="text/css" href="<{$env.app.res_url}>/style.css" />
	<link rel="stylesheet" type="text/css" href="<{$env.app.res_url}>/jquery-ui-1.8.7.css" />
    <script type="text/javascript" src="<{$env.app.res_url}>/mootools.js"></script>
	<title>绑定关系</title> 
 </head>

 <body>
 <div id="main" class="main_content">
 <div class="tableform">
 <div class="bind-wrap">
   <div class="tab-cont"><h3>绑定</h3>
     <div class="tabwrap clearfix " id="bind-nav">
        <ul class="tabmenu clearfix bind-triggersBox">
          <li class="active"><a href="#">绑定关系</a></li>
        </ul>
    <div class="bind-panel clearfix">
        <!--绑定第三方系统信息-->
        <h3></h3>
	    <div class="msg">本系统绑定第三方系统信息(本系统-&gt;第三方系统)</div>
                              <table class="bind-relation" border="0" cellpadding="0" cellspacing="0" width="100%">
                   <colgroup>
                     <col style="width:30%">
                     <col style="width:30%">
                     <col style="width:65%">
                   </colgroup>
                     <tbody><tr><th>系统名称</th><th>系统类型</th><th>操作</th></tr>
                      <tr>
                                                   </tr><tr class="odd">
                                  <td width="22%">爱能打啊</td>
                                  <td width="19%">360buy</td>
                                  <td class="link-area">
                                      <a href="javascript:;" class="look drop-up" title="查看绑定信息">收起</a><span> |</span>
                                        											<a href="javascript:void(0);" onclick="popForm(this,true);" sign="ab130efb137f0cebc56c801d4515ad74" rid="38978" state="false" noreason="false" title="解除绑定关系">解除绑定</a>
                                            <!---->
																					                                  </td>
                            </tr>
                            <!-- 下拉部分 -->
                            <tr class="drop-infor" style="">
                                 <td colspan="3">
                                     <ul class="left-infor">
                                            <li>系统证书：1945309834</li>
                                            <li>系统节点：1892747130</li>
                                            <li>绑定时间：2013-01-24 10:22:56</li>

                                      </ul>
                                      <ul class="right-infor">
                                                                                            <li>商家类型：SOP</li>
                                                 <li>京东商家ID：31959</li>

                                                                                  </ul>
                                 </td>
                            </tr>
                                                   <tr class="even">
                                  <td width="22%">qinqinbaby01</td>
                                  <td width="19%">taobao</td>
                                  <td class="link-area">
                                      <a href="javascript:;" class="look drop-up" title="查看绑定信息">收起</a><span> |</span>
                                        											<a href="javascript:void(0);" onclick="popForm(this,true);" sign="91909abfdc4ae8dcf8e1d94f253a02ac" rid="38976" state="false" noreason="false" title="解除绑定关系">解除绑定</a>
                                            <!---->
																																																		<span>| </span><a href="http://www.matrix.ecos.shopex.cn/index.php?app=app.login&amp;node_id=1397747130&amp;from_node=1707896939&amp;login_type=taobao&amp;node_type=taobao&amp;nickname=qinqinbaby01" target="_blank" title="淘宝授权">淘宝授权</a>
																																																																								
																								                                  </td>
                            </tr>
                            <!-- 下拉部分 -->
                            <tr class="drop-infor" style="">
                                 <td colspan="3">
                                     <ul class="left-infor">
                                            <li>系统证书：1371349733</li>
                                            <li>系统节点：1397747130</li>
                                            <li>绑定时间：2013-01-24 10:35:44</li>

                                      </ul>
                                      <ul class="right-infor">
                                                                                            <li>商家类型：C</li>
                                                 <li>淘宝登录账号：qinqinbaby01</li>
                                                                                                   <li>订阅服务：
                                                                                                         淘宝订单,
                                                                                                        </li>
                                                 
                                                                                  </ul>
                                 </td>
                            </tr>
                                                   <tr class="odd">
                                  <td width="22%">爱能打</td>
                                  <td width="19%">paipai</td>
                                  <td class="link-area">
                                      <a href="javascript:;" class="look drop-up" title="查看绑定信息">收起</a><span> |</span>
                                        											<a href="javascript:void(0);" onclick="popForm(this,true);" sign="f083260bac07b46f87ec33513d703a47" rid="38974" state="false" noreason="false" title="解除绑定关系">解除绑定</a>
                                            <!---->
																																																		<span>| </span><a href="http://www.matrix.ecos.shopex.cn/index.php?app=app.authLogin&amp;node_id=1693747130&amp;from_node=1707896939&amp;node_type=paipai&amp;qq=275008147" target="_blank" title="拍拍授权">拍拍授权</a>
																																														                                  </td>
                            </tr>
                            <!-- 下拉部分 -->
                            <tr class="drop-infor" style="">
                                 <td colspan="3">
                                     <ul class="left-infor">
                                            <li>系统证书：1171322535</li>
                                            <li>系统节点：1693747130</li>
                                            <li>绑定时间：2013-01-23 12:07:40</li>

                                      </ul>
                                      <ul class="right-infor">
                                                                                            <li>登录QQ帐号：275008147</li>
                                                 <li>系统名称：爱能打</li>
                                                 <li>拍拍系统token：934a64100e27f061ff50@juNHuoz4e70</li>
                                                                                  </ul>
                                 </td>
                            </tr>
                                                   <tr class="even">
                                  <td width="22%">ecstoredemo</td>
                                  <td width="19%">ecos.b2c</td>
                                  <td class="link-area">
                                      <a href="javascript:;" class="look drop-up" title="查看绑定信息">收起</a><span> |</span>
                                        											<a href="javascript:void(0);" onclick="popForm(this,true);" sign="5668a26142a15cf3c9869cea3e6ae5c1" rid="27590" state="false" noreason="false" title="解除绑定关系">解除绑定</a>|等待对方同意
                                            <!---->
																					                                  </td>
                            </tr>
                            <!-- 下拉部分 -->
                            <tr class="drop-infor" style="">
                                 <td colspan="3">
                                     <ul class="left-infor">
                                            <li>系统证书：1241705733</li>
                                            <li>系统节点：1901816638</li>
                                            <li>绑定时间：2013-01-21 18:26:31</li>

                                      </ul>
                                      <ul class="right-infor">
                                                                                 </ul>
                                 </td>
                            </tr>
                                             

                 </tbody></table>
                      <!--第三方系统信息-->
        <h3></h3>
		<div class="msg">第三方系统绑定本系统信息(第三方系统-&gt;本系统)</div>
                      <table class="bind-relation" border="0" cellpadding="0" cellspacing="0" width="100%">
               <colgroup>
                 <col style="width:20%">
                 <col style="width:15%">
                 <col style="width:25%">
                 <col style="width:25%">
                 <col style="width:25%">
               </colgroup>
                 <tbody><tr><th>系统名称</th>
                     <th>系统类型</th>
                     <th>系统证书</th>
                     <th>系统节点</th>
                     <th>操作</th></tr>
                  <tr>
                                           </tr><tr class="odd">
                              <td width="22%">ocsdemo</td>
                              <td width="19%">ecos.b2c</td>
                              <td width="22%">1241705733</td>
                              <td width="22%">1901816638</td>
                              <td width="22%">
                                                                                                                 <a href="javascript:void(0);" onclick="popForm(this,true);" sign="f016736f3ab3bd03531e258f7bc2af21" rid="28206" state="false" noreason="false">解除绑定</a>
                                                                                                         </td>
                        </tr>
                                     

             </tbody></table>
                    <!-- 关系解除绑定 -->
        <div id="pop" class="division" style="display:none;">
            <form method="post" action="index.php" id="bind-form">
                <input name="app" value="app.changeBindStatus" type="hidden">
                <input name="op_id" value="admin" type="hidden">
                <input name="op_user" value="admin" type="hidden">
                <input name="node_id" value="1707896939" type="hidden">
                <input name="callback" value="http://ecstoredemo.vip.ishopex.cn/ocsdemo/index.php/openapi/ome.shop/shop_callback/shop_id/" type="hidden">
                <input name="noreason" value="" type="hidden">
                <input name="state" value="" type="hidden">
                <input name="rid" value="" type="hidden">
                <input name="sign" value="" type="hidden">
                <input name="api_v" value="2.2" type="hidden">

                <table>
                    <tbody><tr>
                        <th><span class="red">*</span>解绑原因</th>
                        <td><input name="reason" required="true" type="text"><span></span></td>
                    </tr>
                </tbody></table>
            </form>
        </div>

    </div>
<script>
 (function(){

          $$('.link-area .drop-down,.link-area .drop-up').addEvent('click',function(e){

              if(e.target.get('class').indexOf('drop-up') != -1){
                 e.target.getParent('tr').getNext('tr').setStyle('display','none');
                 e.target.set('html','查看').removeClass('drop-up').addClass('drop-down');
             }else if(e.target.get('class').indexOf('drop-down') != -1){
                 e.target.getParent('tr').getNext('tr').setStyle('display','');
                 e.target.set('html','收起').removeClass('drop-down').addClass('drop-up');
            }
          });
     })()
 $('#bind-form :input[required="true"]').each(function(){
        $(this).blur(function(){
            if ($.trim($(this).val())){
                var span_el = $(this).nextAll('span:first');
                span_el.attr('class','validsuccess').html('&nbsp;');
            }
        });
    });
     var popForm = function(el,dialog){
        var changeKey = {rid:'rid',sign:'sign',state:'state',noreason:"noreason"};
        $.each(changeKey,function(k,v){
            $('#bind-form input[name="'+k+'"]').attr('value',$(el).attr(v));
        });
        if (!dialog){
            $('#bind-form').submit();
        } else{
            $("#pop").dialog({
                autoOpen:true,
                modal:true,
                title:'解绑信息',
                width:550,
                position:'top',
                show:'slide',
                hide:'slide',
                close:function(){
                    $.each(changeKey,function(k,v){
                        $('#bind-form input[name="'+k+'"]').attr('value','');
                    });
                    $('#bind-form input[name="reason"]').attr('value','');
                    $('#bind-form input[name="reason"]').nextAll('span:first').removeClass().html('');
                },
                buttons:{
                    '解绑':function(){
                        var flag = true;
                        $('#bind-form :input[required="true"]').each(function(){
                            if (!$.trim($(this).val())){
                                flag = false;
                                var span_el = $(this).nextAll('span:first');
                                span_el.attr('class','validerror').html('本项必填');
                                $(this).val('');
                                $(this).focus();
                                return false;
                            }
                        });
                        if (flag){
                            $('#bind-form').submit();
                        }
                    },
                    '取消':function(){
                        $(this).dialog('close');
                    }
                }
            });
        }
    }
</script>

  </div>
  </div>
<div class="Business">
        <h4>已经接入的商家平台</h4>
        <ul>
                                  <li><img src="<{$env.app.res_url}>/360-logo.gif"></li>
                          <li><img src="<{$env.app.res_url}>/qq-logo.gif"></li>
                          <li><img src="<{$env.app.res_url}>/pp-logo.gif"></li>
                          <li><img src="<{$env.app.res_url}>/tmall.gif"></li>
                          <li><img src="<{$env.app.res_url}>/tb-logo.gif"></li>
                   
        </ul>
        <!-- <h4>即将接入的商家平台</h4>
        <ul>
        
          <li><img src="<{$env.app.res_url}>/images/1haod-logo.gif"></li>
          <li><img src="<{$env.app.res_url}>/images/dd-logo.gif"></li>
          <li><img src="<{$env.app.res_url}>/images/amazon-logo.gif"></li>
          <!--
          <li><img src="<{$env.app.res_url}>/images/shopex-logo.gif"></li>  
        </ul> -->
    </div>
      </div>
   
      </div>


</div></body></html>